import request from '@/utils/request'

//留样管理---列表
export function sampleList(data) {
    return request({
        url: '/reserve-sample/list',
        method: 'post',
        data
    })
}

//留样管理---列表
export function sampleListsss(data) {
    return request({
        url: '/reserve-sample/destroy/list',
        method: 'post',
        data
    })
}

//获取项目
export function sampleAllProject() {
  return request({
    url: `/reserve-sample/all/project`,
    method: 'get',
  })
}

//留样管理---销毁申请审批
export function destruction(data) {
    return request({
        url: '/reserve-sample/destruction/check',
        method: 'put',
        data
    })
}

//留样管理---详情
export function sampleDetail(id) {
    return request({
        url: `/reserve-sample/detail?id=${id}`,
        method: 'get',
    })
}

//留样管理---详情
export function sampleFlowDetail(id) {
    return request({
        url: `/reserve-sample/flow-id/detail?id=${id}`,
        method: 'get',
    })
}

//留样管理---销毁记录列表
export function destructionList(data) {
    return request({
        url: '/reserve-sample/destruction/list',
        method: 'POST',
        data
    })
}

//留样管理---批量销毁申请
export function destructionApply(data) {
    return request({
        url: '/reserve-sample/destruction/apply',
        method: 'POST',
        data
    })
}

